package com.app.newcsc.fragment.moneydetail;

import androidx.annotation.NonNull;

import com.app.newcsc.R;
import com.app.newcsc.entity.DetailEntity;
import com.app.newcsc.utils.TimeUtil;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

public class DetailAdapter extends BaseQuickAdapter<DetailEntity, BaseViewHolder> {
    public DetailAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, DetailEntity detailEntity) {
        baseViewHolder.setText(R.id.tvNum,detailEntity.getMoney());
        baseViewHolder.setText(R.id.tvDate, TimeUtil.MonthDayTwo(detailEntity.getCreate_time()));
    }
}
